package group.raber.jeki.autoconfigure;

import com.alibaba.druid.pool.DruidDataSourceFactory;
import group.raber.auth.autoconfigure.AuthAutoConfiguration;
import group.raber.jeki.autoconfigure.mybatisplus.MybatisPlusConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.*;
import org.springframework.core.env.Environment;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

import javax.sql.DataSource;
import java.util.Properties;

/**
 * Created by tisir<yangsong158@qq.com> on 2017-04-27
 */
@Configuration
@ImportResource("classpath:application-context.xml")
@Import(value={MybatisPlusConfig.class,AuthAutoConfiguration.class})
//@ComponentScan(basePackages={"group.raber.auth"})
//@EnableWebMvc
public class JekiConfiguration extends WebMvcConfigurerAdapter {


//    public void addResourceHandlers(ResourceHandlerRegistry registry) {
//        registry.addResourceHandler("/myResource/**").addResourceLocations("classpath:/myResource/");
//        super.addResourceHandlers(registry);
//    }


}